package com.hongdee.crm.complain.service.impl;

import com.hongdee.common.dao.IHibernateDao;
import com.hongdee.crm.average.dao.IAverageDao;
import com.hongdee.crm.complain.dao.TCrmComplainDao;
import com.hongdee.crm.complain.service.ITCrmComplainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2017/6/2.
 */
@Service
public class ITCrmComplainServiceImpl implements ITCrmComplainService {
    @Autowired
    private TCrmComplainDao tCrmComplainDao;
    private  String tabName="T_CRM_COMPLAIN";
    @Autowired
    private IHibernateDao iHibernateDao;
    /**
     * @paramuid      登录用户 ID
     * @param start
     * @param limit
     * @throws Exception
     * @desc 分页查询
     * @author 于扬
     */
    @Override
    public Map page(String start, String limit) throws Exception {
       String sql="select * from t_crm_complain where 1=1 ";
       List<Object>params =new ArrayList();
       return this.tCrmComplainDao.page(sql,params.toArray(),start,limit);
    }
}
